GithubHelp home page GithubHelp logo

ethereumbitcoinswap's People

Contributors

ethers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ethereumbitcoinswap's Issues

ether fee calculator

provide guidance to ether buyers that need a 3rd party, how much etherFeePercent they should specify for 3rd parties.

this involves analysing the costs of reserveTicket() and claimTicket(). probably do after work on #15

ticket Id in claim view is sometimes a string

should try to always ensure ticketId is a number; remove parseInt call

this was found by reserving a ticket, then remaining on the claim view, change the ticketID, click Lookup, and try reserving a differnt ticket. in ethReserveTicket() ticketId was a string instead of number, so the subequent switch statement wasn't equal

offerEther event handling

  • use viewmodel like done in other views
  • use call-then-sendtx pattern
  • check behavior against cpp eth

auto-refresh ticket collection

when a new ticket is created, a user should be able to look at the tickets and see the new ticket, without doing a refresh

handling reuse of tx

create 2 identical tickets. the tickets should probably not be claimable by reusing the same tx

after Reserve the table isn't auto-updated

#46 only updates the claimTicket view, so if the user clicks on Tickets tab, the ticket will still show "Reserve" instead of claim.

something like TicketColl.update(ticketId, { viewm.claimerAddr(web3.eth.defaultAccount.substr(2)), viewm.claimTxHash(txHash.substr(2), viewm.claimExpiry(moment().add(4,'hours').unix()) } might fix it

should not enable Reserve when ticket already claimed

In table view, click Claim. Then change ticket id with one that's already been claimed. Use a valid raw transaction (perhaps same one that claimed the original ticket). Click Lookup.
EXPECTED: no buttons enabled
OBSERVED: Reserve button is enabled blue. UI is using the details from the prior ticket.

sort is deprecated in reactivetable

sortOrder should be a positive number, and the primary sort will be the field with the lowest sortOrder. sortDirection should be 1 for ascending or -1 for descending. Either of these can also be a ReactiveVar, which will be updated whenever the user changes the sorting, and will update the table whenever it's changed.

should not be able to claim a ticket that has not been re-reserved

reserve a ticket (fast expiry)
go to the Claim tab
observe the expiry change to OPEN
press Claim

EXPECTED
CLAIM_FAIL_UNRESERVED

OBSERVED
Claim would succeed (ticketId was returned)

this condition needs to be expanded

    if (claimExpiry == FRESH_TICKET_EXPIRY):
        log(type=ticketEvent, ticketId, CLAIM_FAIL_UNRESERVED)
        return(0)

add error CLAIM_FAIL_PROOF

CLAIM_FAIL_FALLTHRU should not happen, instead when verifyTx fails it should return something else like CLAIM_FAIL_PROOF

PoW in browser failing to verify

the first it verifies ok, but after changing the nonce to a failing one, changing the nonce to a passing one still keeps failing

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.