Giter Club home page Giter Club logo

augur.js's People

Contributors

adrake33 avatar antazoey avatar bthaile avatar dependabot[bot] avatar epheph avatar gitter-badger avatar joeykrug avatar johndanz avatar justinbarry avatar kevinday avatar micahzoltu avatar niran avatar nuevoalex avatar ogexoticsweb avatar paullinator avatar petong avatar pgebheim avatar priecint avatar randomnetcat avatar ryanberckmans avatar stephensprinkle avatar stephensprinkle-zz avatar teneighty avatar thinkloop avatar tinybike avatar xcorail avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

augur.js's Issues

Use keystore file format as login input

Give the front-end some flexibility WRT key derivation function, number of hashing rounds, etc.; this is all built in to keythereum so there's no reason augur.js should be limited.

Fix filters

Filters were working, now they're not. Seems likely whatever changes/refactoring broke comments also broke filters.

Batch RPC interface

Here are the three options I think we have:

Option 1

Augur.batch(function (augur) {
    augur.methodName(..., callback1);
    augur.methodName(..., callback2);
});

Option 2

var batch = Augur.batch();
batch.methodName(..., callback1);
batch.methodName(..., callback2);
batch.execute();

Option 3

var batch = Augur.batch();
Augur.methodName(..., callback1, batch);
Augur.methodName(..., callback2, batch);
batch.execute();

I think Option 1 is the nicest to use, but potentially awkward to implement. Option 2 seems like the middle ground on usability and implementation difficulty. Option 3 is probably pretty terrible since Javascript doesn't give us default argument values to make it easier to distinguish between all of the optional callbacks and the batch.

decouple comments system from getMarketsInfo

in an effort to further optimize loading markets, i'm using this contract method that returns several market properties at once. it's doing some comment thing as well and spamming the logs as well. i'd prefer to keep it as lean as possible and not do anything else while optimizing the market loading.

Augur.getMarketInfo returns array of raw RPC hex strings

please do the thing where these are returned as BigNumbers and of course transformed from fixed-point when needed (i think two of the values require this treatment.

the array of values is fine (as apposed to converting them to labeled object)

Uncaught Error: Callback was already called.

getting this now with some call to augur.js. happens right away when trying to load markets.

called @ app.js:6068(anonymous function) @ app.js:32018module.exports.parse @ app.js:31939(anonymous function) @ app.js:31987

account email/handle and password have hidden criteria

there are certain account "handles" and passwords that fail registration. it would be nice to know what those are.

i'm happy to implement a good UX and error messaging if we can come up with a reasonable set of criteria for both.

Implement market comments

Augur.addMarketComment({
marketId: hashId/BigNumber
author: address,
message: string
})

Augur.getMarketComments(marketId)

this would store the the comment in an associated centralized datastore, whisper network or ipfs with timestamp of course.

Be more delicate/smarter with string/byte type returns

"he ultimate solution to global warming will be geoengineering (defined as a majority of research papers claiming this is why temps dropped)"

is not market 0x1607e87fb97385cc01690314169cf9c60b7e7e0a7498572612e9ee53ab3cbb7b description.

Password enter slow

try entering a password in the register box by typing quickly, i.e. not like a random old person who types like a chicken pecking... it won't pickup all the letters.

add onSuccess callback for dispatch

i don't have a way to know if dispatch succeed so i blinding call it every block until the period is current. please add an onSuccess call back so i can be smarter about these calls.

Test multiple logins of one account

Look into what (if any) failure modes can result from logged in to the same account multiple times simultaneously. Obvious potential problem is if both try and submit transactions at (roughly) the same time, they will both be assigned the same nonce by the client, which will (may?) cause geth to reject one of them.

Support RPC batching?

apparently geth supports RPC batching, but web3 does not.

i think it would be a big win for augur.js, if you could make a method like getMarkets that batches up a lot of what we're trying to do in an initial market load on the client.

this might solve the scaling issue way better than async.

Take the API to the next level

this is a great start, but after using it, i'd like to see it take care of everything contract and augur. the methods should take normal values like '0.02' and do the conversion to fixed point. it should use whatever rpc interface it likes and it would be nice if it did sanity checking on inputs and good exceptions handles.

it so close to this already and i'm totally sold on this abstraction.

Backup RPC nodes not working

Primary (eth3.augur.net) demo host had to be restarted today and the backup nodes didn't automatically catch the RPC requests.

Sign in error

Register followed by sign in works fine in the client until the page is reloaded. After that, sign in fails (with the uninformative error message sign in failed). Not sure if this is an augur.js or client issue, but seems likely to be augur.js because most of the account machinery is here.

Don't use coinbase as default for hosted nodes

The "holdings" section of the UI shows shares from other accounts. This is likely due to careless use of coinbase as a default value for certain transaction parameters and from fields. (For hosted nodes, this is the demo account, which should not be used as a default.)

Uncaught TypeError: Cannot read property 'fix' of undefined

I'm getting this after submitting a ballot

// makeReports.se
Augur.prototype.report = function (branch, report, votePeriod, salt, onSent, onSuccess, onFailed) {
    if (branch.constructor === Object && branch.branchId) {
        report = branch.report;
        votePeriod = branch.votePeriod;
        salt = branch.salt;
        if (branch.onSent) onSent = branch.onSent;
        if (branch.onSuccess) onSuccess = branch.onSuccess;
        if (branch.onFailed) onFailed = branch.onFailed;
        branch = branch.branchId;
    }
    var tx = utilities.copy(this.tx.report);
    tx.params = [branch, Augur.abi.fix(report, "hex"), votePeriod, salt];
    return this.send_call_confirm(tx, onSent, onSuccess, onFailed);
};

Memory issues, firefox crashes, etc.

Running augurjs in FF will eventually crash it (approx. 8 refreshes). Other browsers show some struggle running it. We should test augurjs piece by piece to isolate where issues may be occurring and resolving them. @tinybike

Make accounts portable

Accounts are stored in localStorage and it would be very nice if they were portable. Easiest method probably to use keythereum methods to dump the account info to file, then import into different browser/machine/etc.

Implement filter type interface that fires a callback on ANY augur contract tx

It watches for new transactions and fire a callback and returns a nice data structure of the tx that is augur related (ie. share purchased/sold, etc.)

for starters, it would be nice to know when a new market/event has hit the chain so i can update the client. (don't want to have to poll all markets, all the time!)

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.