Coder Social home page Coder Social logo

potlock / nadabot-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.71 MB

Nada.bot application https://nada.bot Sybil resistance contract aggregator on NEAR Protocol

Home Page: https://app.nada.bot

License: MIT License

TypeScript 98.04% JavaScript 0.04% CSS 1.92%
nadabot ndc near-protocol potlock sybil sybil-resistance sbyil-attack

nadabot-app's Introduction

nadabot-app

Nada.bot application https://nada.bot

Getting Started

nvm use; npm install;
# then run the development server
npm run dev

Open http://localhost:3000 with your browser to see the result.

Env vars

Create an env file named .env.local at the root of the project with the following content:

# NETWORK (testnet or mainnet)
NEXT_PUBLIC_NETWORK=testnet

# The smart contract ID (ID of the account where the contract was deployed)
# testnet: v1.nadabot.testnet
# staging: v2new.staging.nadabot.near
# mainnet: v1.nadabot.near
NEXT_PUBLIC_CONTRACT_NAME=<smart_contract_address>

# SOCIAL DB Smart Contract: v1.social08.testnet OR social.near
# Get to know more here: https://github.com/NearSocial/social-db
NEXT_PUBLIC_SOCIAL_DB_CONTRACT_ID=v1.social08.testnet

# Pinata JWT (ask Shot for the JWT Key)
PINATA_JWT=<jwt-code>

nadabot-app's People

Contributors

carina-akaia avatar codingshot avatar lachlanglen avatar m-rb3 avatar wpdas avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

nadabot-app's Issues

[BUG] Convert gas from Tgas when registering or updating provider

Describe the bug
If a registrant enters 100 Tgas units for their provider, this should be converted to indivisible gas units before being sent to the contract. You can do this by multiplying Tgas units by 10^12.

Additionally, please validate that Tgas is not greater than max allowed (100 Tgas units, or 100 * 10**12 gas - this limit is implemented on contract) - this also a part of this ticket, just adding here for awareness.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

[BUG] Human Search: Score information is white for mobile view

Describe the bug
The score information is using white color when in mobile view

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'home'
  2. type any account id and click on search button (Explore section)

Expected behavior
Score information should have the correct color as defined on Figma.

Screenshots

Smartphone (please complete the following information):

  • Device: Galaxy Z Flip3
  • OS: Android 14
  • Browser Chrome
  • Version 121.0.6167.01

[BUG] Admins Show As Human With No Stamps

Describe the bug
Should show as not a human with no stamps for admin in top right corner
To Reproduce

  • login as admin
  • show correctly human state based on huamn threshold

Image

[ENHANCE] Verification flow

Summary

After verifying my social profile on PotLock, expected completion but faced issues. UI didn't auto-refresh, possibly needing social indexer event subscription. Additionally, the "Verify" button step wasn't clear, suggesting UI improvements for better visibility and guidance.

Description

When I've verified my profile on PotLock platform, I thought it was the last step I had to take to verify my social profile. However, when I got back to nada.bot:

  1. The UI didn't refresh the status automatically and had to refresh the page (don't know if it was an error maybe on my end, but in case it isn't implemented, this could be done by using the social's indexer and subscribing to a given event, happy to help if needed)
  2. I didn't know that I had to click on the "Verify" button to complete the verification process, the UI might need a more clear warning with some contrast color to make it clear to the user that needs to click the button to finish the process.

Acceptance Criteria

  • Nada.bot page automatically refreshes when the user took the first step on the external website
  • The pending action to complete the verification process is outlined properly

Additional Information

In case you need any help implementing the indexer thing, or ideas on how the pending action could be outlined, I'm happy to help. Feel free to reach me out directly via TG @OxMattB

[FEATURE] Allow Submitter to Edit Stamp [need design] ๐ŸŸ 

Problem

  • some people need to update desciprtion

User Story(s):

As a submitter, I want to update my stamp, so that I can change details like gas amount

Description

Description of solution

Acceptance Criteria

  • edit button
  • need admin to approve

Limitations

Resources

[ENHANCE] Add environment indicator when using staging or testnet env

Summary

As a User, I want to be aware if I am using the staging or testnet environment.

Description

Can be basic, just need a clear indication that you are on staging or testnet. Could be a banner unless that is too obtrusive.

Acceptance Criteria

  • Displays environment name to user when on staging or testnet

Additional Information

[BUG] ViewProviderDialog: Background not covering all screen

Describe the bug
The dialog background is not covering the entire screen

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'home'
  2. Click on any Provider to open up the Provider View Dialog

Expected behavior
The background should cover the screen entirely.

Screenshots

Smartphone (please complete the following information):

  • Device: Galaxy Z Flip3
  • OS: Android 14
  • Browser Chrome
  • Version 121.0.6167.01

[FEATURE] Pull Icons from NEAR Social Profile ๐ŸŸ 

Problem

Currently icon preview is blank, prefer it pulled from NEAR Social Profile iamge

User Story(s):

As a user, I want to see whether account have a near social profile iamge, so that I can recognize them more easily.

Description

Pull social profile image from enar socail

Acceptance Criteria

  • if they have image pull it and show in proifle dropdown
  • show on user search drop down #1

Limitations

  • may need to use social indexer

Resources

  • ADD FIGMA

[FEATURE] Configure Application with Deployed Contract

Problem

Configure application with deployed contract. Currently on testnet

User Story(s):

As a sybil provder, I want to have a deployed contract, so that I can add my contract to mainnet

Description

Update with mainnet contract.

Acceptance Criteria

  • deployed on production branch

Limitations

  • need to deploy contract and blocked on this on core

Resources

[FEATURE] Global Stamp Feed ๐ŸŸ 

Problem

Cant audit a trail of stamps

User Story(s):

As a owner , I want to know everyone that is getting a stamp, so that I can better see stamp patterns

Description

Sortable and global stamp feed

Acceptance Criteria

  • Show all stamps in a row
  • Show icon, show stamp name, show who got it and when
  • (show expiry somewhere)
  • Filter by stamp type
  • Filter by time and date
  • Put in navbar as feed
  • click on stamp to go to stamp page
  • click on person and goes to person page
  • click time and goes to transaction shitory

Limitations

[FEATURE] Filter Stamps ๐ŸŸ 

Problem

Explain the problem in details

User Story(s):

As a _______, I want to ____, so that I can

Description

Description of solution

Acceptance Criteria

  • filter stamps by points
  • filter stamps by most recently aded
  • filter stamps by need to verify

Limitations

Outline any potential limitations

Resources

  • outline links and relevant resources, references implementations

[ENHANCE] Change Gateway to open Up

Summary

Currently on dropdown of view profile on top right corner it goes to near.org profile page, need to switch to bos.potlock.org as that is main application we will be driving toward.

[BUG] Not Adding Up All Points Correctly

Describe the bug
"Points are wrongly calculated imo (says 23 but I should have 70) and it says that I'm not considered as a human meanwhile I see a stamp "verified human""
To Reproduce
This maybe because already meets human amount

Expected behavior
points to show totla number of points

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Image

Additional context
crans.near

[FEATURE] Nada.bot Search Users ๐ŸŸ 

Problem

Can't search other users whether they are human verified

User Story(s):

As a user, I want to search the score of other users, so that I can see what stamps they have verified, or that they havent and havent verfied, or whether they are human.

Description

Search all account

Acceptance Criteria

Limitations

  • maybe hard to index every stamp by users to know how to globally search
  • can you search anyone by account id even if they dont have stamp (are we just searching all counts that exists?

Resources

[ENHANCE] Popup overlay shadow clipped

Summary

THe gray overlay is only showing up for frame not for whole page, so looks off when scrolling

To reproduce click on stamp #8 also related to this

Acceptance Criteria

  • quick overlay

Additional Information

[FEATURE] Have KYB Section -- NEEDS CONTRACT CHANGE

Thinking about ways to extent nada bot for business so we can use for verifying non profits and trusting something is a legitamtiey busniess
Ability to verify an organization

  • verify non profit - 501c3
  • proof address
  • using twitter business verification
  • type of entity in the us

Need to find different providers for this
Tag a stamp as a human, business or both stamp
set of rules maybe different


Common methods used by financial institutions for KYB checks include:

Document verification: This involves requesting documents such as:
Business registration documents: Certificates of incorporation, trade licenses, etc.
Financial statements: Audited financial statements, tax returns, etc.
Proof of address: Utility bills, bank statements, etc.
Identification documents for beneficial owners: Passports, driver's licenses, etc.
Public records checks: Searching government databases to verify business registration and ownership information.
Third-party verification services: Using specialized companies to verify business information and perform due diligence.
Customer interviews: Gathering information directly from the business owners and representatives.
The specific documents and information requested will vary depending on several factors, such as:

The type of business: High-risk industries may require more extensive checks.
The size and complexity of the business: Larger businesses may require more documentation.
The nature of the relationship: Opening a business bank account may require more checks than processing a one-time payment.
The institution's own risk management policies: Different institutions have varying risk tolerances and may have stricter or looser KYB requirements.

[FEATURE] Add Human Threshold Section ot Top ๐ŸŸ 

Problem

I dont know what my curent score is

User Story(s):

As a user, I want to see my human threshold, so that I can see if im a human

Description

Human trheshold page for logged in users

Acceptance Criteria

  • human thershold setitings layouts
  • pull from adding up all the stamps

Limitations

Outline any potential limitations

Resources

  • Add Sybil contract

Image

[BUG] ViewProviderDialog: Close Button and Title doesn't show

Describe the bug
The input to search for human is using the wrong background color when the view is mobile.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'home'
  2. Click on any Provider to open up the Provider View Dialog

Expected behavior
A close (x) button should be presented as well as the provider Title.

Screenshots

Smartphone (please complete the following information):

  • Device: Galaxy Z Flip3
  • OS: Android 14
  • Browser Chrome
  • Version 121.0.6167.01

[ENHANCE] Show Route of Popup to share stamp ๐ŸŸ 

Summary

[Brief overview of the enhancement and why it is needed or desired]

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[BUG] Social Check Bug: Already Verified check shoowin up on get check

Describe the bug
Finised the Social Check got the points but the card is still showing to get check.

To Reproduce

Expected behavior
thecheck must not be on get check as I have social verification done

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

[ENHANCE] Open Contracts and Address referneeces in nearblock ๐ŸŸ 

Summary

[Brief overview of the enhancement and why it is needed or desired]

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

show how much point is needed for user to be considered Human Verified.(or fix bug if the current UI is correct)[ENHANCE]

Summary

[Brief overview of the enhancement and why it is needed or desired]
the current ui just says to keep collecting stamp points but has a misleading stat as shown in the mage below, 22/20 points which suggests that 20 points is needed? but then still says user is not verified despite having more

Description

[Detailed description of the enhancement, including how it would work and any design considerations]
photo_2024-02-06_13-22-23

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[FEATURE] Add Recent Stamps ๐ŸŸ 

Problem

Want to see if i recently verifiied (added stamp)

User Story(s):

As a _______, I want to ____, so that I can

Description

Description of solution

Acceptance Criteria

  • show associated stamp amount
  • filter by recent

Limitations

  • cant see if they verified from other aplications here check the app for this
  • not sure if htis recent stamps show on its own page

Resources

  • outline links and relevant resources, references implementations

Image

[BUG] Search for human input with wrong background color for mobile

Describe the bug
The input to search for human is using the wrong background color when the view is mobile.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'home'

Expected behavior
Background should be transparent as Figma demands

Screenshots

Smartphone (please complete the following information):

  • Device: Galaxy Z Flip3
  • OS: Android 14
  • Browser Chrome
  • Version 121.0.6167.01

[FEATURE] Create Testnet Version of application

Problem

Sybil providers need a way to test on testnet

User Story(s):

As a sybil provider, I want to test with my testnet contract, so that I can experiment with application

Description

Testnet version of nadabot

Acceptance Criteria

  • deploy to v1.nadabot.testnet
  • configure branch fo testnet
  • configure testnet.nada.bot
  • register in social
  • add to docs.nada.bot
  • also add fake sybil providers to this

Limitations

Resources

  • outline links and relevant resources, references implementations

[FEATURE] Logout Button & Display Name of Account w Profile ๐ŸŸ 

Problem

Can't logout and tell which account Im logged in buy

User Story(s):

As a user, I want to lougout, so that I can login with another account

Description

A logout button on profile drop down. Profile pill shows profile image from NEAR Social API (or show defaults).

Acceptance Criteria

  • logout button

Limitations

  • didnt have good ui for this

Resources

Open The Pending Verify Notification if available on login

Summary

Open The Pending Verify Notification if available on login

Description

To make the verify checks more easy to access add a default notifaction for available to verify checks on notification. If already available make it popup on login.

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]
image

[FEATURE] Make Admin A Seperate Page

Problem

Its annoying to not be able to verify stamps as an admins as you can only see admin page.

  • admin should be in an admin route
  • admin route should be accessible in dropdown to profile if admin

[ENHANCE] Add "Account ID parameter name" to Register/Update Provider forms, & to provider detail modal

Summary

Requiring providers to use account_id key for account ID parameter in method args is not flexible, e.g. in the case of a javascript contract it would more likely use camel case, or in the case of other contracts, e.g. I-Am-Human, they use a different name, account, for consistency within their contract.

Therefore, we want to provide the option for a provider registrant to specify the name of their account ID parameter, and they should also be able to update this.

Probably helpful if it defaults to account_id

Description

See above

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

  • See updated Sybil readme for latest documentation (see ProviderExternal struct and register_provider and update_provider methods)

  • This non-breaking smart contract change has been deployed to all three contracts (testnet, staging & mainnet)

Seperate Verify in Itw Owns Section: Updates on the flow, optimisation of the states

Summary

  1. Separated Verify from Get check
  2. Minimized the Scroll by moving the searchbar to NAV
  3. Null state for recent checks
  4. The Completed check card is bit changed
image ![Uploading image.pngโ€ฆ]()

Description

The main issue is separating the verify and get check cards so I have made updates on the cards. Secondaly to reduce the scroll the search bar is sent to the navbar. Check figma in the link below
https://www.figma.com/file/ckixqGfuRKZ63tTvdJzi6j/Potlock?type=design&node-id=7882-31292&mode=dev
[Detailed description of the enhancement, including how it would work and any design considerations]

Acceptance Criteria

Additional Information

[Any other relevant information, such as links to related issues or pull requests]
image

[ENHANCE] Validate form inputs according to on-chain constraints

Summary

See https://github.com/PotLock/core/tree/main/contracts/sybil#constants--input-validation for on-chain constraints

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]

[BUG] Cannot Exit Out of Stamp Popup ๐ŸŸ 

Describe the bug
I cant exist out of stamp popup
To Reproduce
Steps to reproduce the behavior:

  1. Go click verify stamp
  2. Try to click outside

Expected behavior

  • add x button, or exit back to page before when clicked on the side
    Screenshots
    If applicable, add screenshots to help explain your problem.

[BUG] User Not Staying Logged in

Describe the bug
Not stayling logged in or showing profile iamge
To Reproduce
Steps to reproduce the behavior:

  1. login (was using meteor wallet)
  2. refresh page
  3. not showing logged in and needed to keep signin in and adding access key

Expected behavior
Continue styaing logged in when refreshed.
Screenshots

Image

[BUG] Confirmation After Stamp Verification Showing Confirm Verification CTA

Describe the bug
After confirmation, shows you are done with another confirmation, very confusing
To Reproduce
Steps to reproduce the behavior:

  1. Get stamp
  2. Verify popup
  3. Confirm transaction
  4. See error that you are done and still confrimed

Expected behavior
should just og aways or have success or have confetting or points going up animation. Make it clear you have points and that it was succesful and dont show confimration button again

[FEATURE] Search Stamps ๐ŸŸ 

Problem

Cannot currently search stamps

User Story(s):

As a _______, I want to ____, so that I can

Description

Description of solution

Acceptance Criteria

  • search stamps by name
  • search stamps by deploers

Limitations

Outline any potential limitations

Resources

  • outline links and relevant resources, references implementations

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.