omgnetwork / community-points Goto Github PK
View Code? Open in Web Editor NEWCommunity points monorepo
License: Apache License 2.0
Community points monorepo
License: Apache License 2.0
Currently users are allowed to send in decimals, such as 1.1
. We should forbid users from typing decimals in the input box
send points to a moderator address
Pong said he wants to control the point distribution!
Web3 is fat
problem: when user closes extension during a pending transaction, user loses that state when opening the extension again (we flush the history on boot as an easy fix to when the user switches accounts in metamask)
solution: only flush the tx history when the address has changed (keeping any pending states). requires logic for detecting this address change and flushing only when necessary.
another potential solution: key the tx history in global state by address, so when switching accounts we maintain pending states
short poll of transactions will reset pagination state when on transaction history, losing page position.
potential holes for uncaught exceptions on app initialization
2 options:
Community Point Transfer
to every txFetch user-address map from thread and create searchable dropdown in ui
https://www.reddit.com/r/OMG_test_yolo/comments/ho07gz/romg_test_yolo_lounge
update flair script to accommodate flair levels (already implemented in extension)
This way we can level up any flair -> flair_wave:2, etc, and we don't have to modify existing metadata ids
Script should replace user flairs on reddit with upgraded flairs if they have been purchased
script to parse specified address for flair transactions and award flairs accordingly
The fee-relayer could have a desired number of utxos.
If the current number of utxos is below that level, on each relay tx it could split its change output into 2 or 3 outputs until it reaches the desired level
currently errors are not shown in ui
implement banner design
https://www.figma.com/file/7sLpcyPt4jrctHobEcbqef/Reddit_Webwallet?node-id=95%3A302
add sentry for reporting
utxos with a value of less than the fee are useless - they can be periodically merged into a larger value utxo
list of bugs discovered so far
https://github.com/omgnetwork/community-points/pull/83/files#diff-fb3fa3247fdd2026088800e297d482e2
Introduces a Dockerfile to run the flair update script. It's running as root which is discouraged:
docker run -ti --entrypoint /bin/sh flair
/app # whoami
root
Consider adding a user to run this service.
If the fee-relayer is under heavy load it may not have an available utxo to pay the fee, but it should have one after the next block.
The extension should handle an error from create-relay-tx
that starts the string Insufficient funds to cover fee amount
and display something like "Server busy, try again later"
We’re gona run into an issue of ppl running old versions and sentry still throwing
Use manifest version to filter out old errors
https://stackoverflow.com/questions/14149209/read-the-version-from-manifest-json
double check limit on query does indeed fetch all top level thread comments
When app is open, diff transaction poll
While distribution is on gh, check if newer release exists and prompt user to upgrade
If the pod doesn't shutdown gracefully the account is not marked as available in the DB, so we can run out of available accounts.
One solution is to use timed leases that are constantly renewed while the pod is up.
Have been thinking about possible solutions:
ethPM
as the package management. Not sure how to get the ABI out though. Supposedly do-ablenpm
as the package management. However, limited to npm
to get the ABI outartifact
branch in this repo, whenever there is a new release, we publish the ABI with the semver in a folder the branch there. eg. abi/v0.0.1/
and abi/v0.0.2/
...contracts/
as Pong suggested.create transaction with signed fees from fee-relayer
scenario:
to investigate:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.