Giter VIP home page Giter VIP logo

bns's People

Contributors

davepuchyr avatar orkunkl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bns's Issues

Create endpoint for balances

We need to include an endpoint for balances. We want an endpoint that responds with data like from BNSCLI_TM_ADDR=http://167.172.104.185:31140 bnscli query -path '/wallets' -data C1721181E83376EF978AA4A9A38A5E27C08C7BB2 eg.

{
  "Key": "636173683ac1721181e83376ef978aa4a9a38a5e27c08c7bb2",
  "Value": {
    "metadata": {
      "schema": 1
    },
    "coins": [
      {
        "whole": 9773,
        "fractional": 550000000,
        "ticker": "IOV"
      }
    ]
  }
}

The endpoint should be /cash/balances and list all balances when no parameter is given and should list a single balance if given an owner parameter in either hex or bech32 format.

Send signed transactions through bnsapi

We just got word that Cosmostation would like to be able to submit signed transactions through the bnsapi. Adding that functionality is top priority list.

List available endpoints instead of error message

Currently, if you browse to the bnsapi without specifying an endpoint you see

{
	"errors": [
		"Not Found"
	]
}

We need a structured endpoint listing such as cosmos:

Available endpoints:
Endpoints that require arguments:
//63.35.133.166/abci_info?
//63.35.133.166/abci_query?path=_&data=_&height=_&prove=_
//63.35.133.166/block?height=_
//63.35.133.166/block_results?height=_
//63.35.133.166/blockchain?minHeight=_&maxHeight=_
//63.35.133.166/broadcast_evidence?evidence=_
//63.35.133.166/broadcast_tx_async?tx=_
//63.35.133.166/broadcast_tx_commit?tx=_
//63.35.133.166/broadcast_tx_sync?tx=_
//63.35.133.166/commit?height=_
//63.35.133.166/consensus_params?height=_
//63.35.133.166/consensus_state?
//63.35.133.166/dump_consensus_state?
//63.35.133.166/genesis?
//63.35.133.166/health?
//63.35.133.166/net_info?
//63.35.133.166/num_unconfirmed_txs?
//63.35.133.166/status?
//63.35.133.166/subscribe?query=_
//63.35.133.166/tx?hash=_&prove=_
//63.35.133.166/tx_search?query=_&prove=_&page=_&per_page=_
//63.35.133.166/unconfirmed_txs?limit=_
//63.35.133.166/unsubscribe?query=_
//63.35.133.166/unsubscribe_all?
//63.35.133.166/validators?height=_

Acceptance:

  • Endpoints with and w/o parameters must be shown separately
  • Listed endpoints should be links, not just plain text

improve the swagger page for mainnet

  • fix the title --> IOV Name Service Rest API

  • only display endpoint which is relevant for mainnet (cash, info, usernames/owner, usernames/iovstarname)

  • for the cash/balances endpoint

    • instead of 'Returns a bnsd/username.Token entitiies" ' you should say
      "returns balances based on iov address"
  • for the username/orkun*iov endpoint

    • you should say "Resolve an iov starname'
  • for the username/owner endpoint

    • you should say "Returns the list of iov starname owned by this iov address"
  • fix the Models section

Refactor DOMAIN env to be HOST and PORT

the env var DOMAN should be HOST and we need to add PORT, so that the available endpoints don't 404 localhost. The list of endpoints should be like //HOST:PORT/info/, etc.

  • Note the double // is not prefixed with http(s) .

Bug: REST API is not responding with all username targets

The REST API endpoints /username/resolve/:starname and /username/owner/:owner only return the iov-mainnet target even when other targets exist. All targets should be returned. (The bnsd v1.0.0 version of the REST API does not suffer from this bug; see the kraken*dave account at http://exchangenet-bnsapi.iov.one:8000/account/accounts?domainKey=dave.)

Links are not working on the index page

Summary:
When i am on the index page of the bnspi and I click on a link, it is to a broken page
Steps to Reproduce:
When i am on the index page of the bnspi and I click on a link, it is to a broken page
Expected result:
it should display the endpoint
--> Lets use relative links so we don't care about ip address and ports on the index page
Actual result:

bug

Add GET nonce into the BNS Rest API

GET /account/address/nonce/:owner returns nonce based on iov address
GET /account/pubkey/nonce/:owner returns nonce based on iov public key

Bnsapi compatibility with weave v0.21.2

We need to investigate if the bnsapi app can be made compatible with weave v0.21.2, the mainnet version. If it is compatible then we need an endpoint for usernames, just like we already have for accounts.

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.