Giter Club home page Giter Club logo

Comments (8)

Redm4x avatar Redm4x commented on September 26, 2024 1

Just released the latest version with the new total count. @jigar-arc10 can you confirm it's working as expected?

ex: https://api.cloudmos.io/providers/akash18ga02jzaq8cw52anyhzkwta5wygufgu6zsz6xc/deployments/0/10

from cloudmos.

baktun14 avatar baktun14 commented on September 26, 2024

Hey Jigar, so I found that the nodes currently support filtering leases for a provider:

https://akash-api.polkachu.com/akash/market/v1beta4/leases/list?filters.provider=akash18ga02jzaq8cw52anyhzkwta5wygufgu6zsz6xc

The deployments one doesn't work because providers aren't on it, so this is the one we can do. However, we don't have everything that the node has to return in the list. We only index what's relevant to calculating the stats, but not all the extra data like the endpoints, attributes, etc.

So my question to you; what's your plan exactly in terms of implementation? Do you have to have a list of deployments with a bit of informations and rest in the detail page?

from cloudmos.

jigar-arc10 avatar jigar-arc10 commented on September 26, 2024

This API only gives us leases and does not give us more information about deployments inside that lease.

We are putting this information on the list page, and we also have a lease detail page where we will need to show deployment details like URL and port and other significant information that you are showing right now in Cloudmos.

from cloudmos.

baktun14 avatar baktun14 commented on September 26, 2024

We will make an API endpoint to list the deployments done on a provider, and the rest of the information can be queried from the node directly on the detail page here for example: https://akash-api.polkachu.com/akash/deployment/v1beta3/deployments/info?id.owner=akash1p2e73vphy9umsx02y6xqr49yeu0dn9s3pytkvk&id.dseq=13911176

from cloudmos.

baktun14 avatar baktun14 commented on September 26, 2024

We will implement a provider deployments api endpoint with the following json response:

{
   "deployments":[
      {
         "owner":"akash12qyc26j04dlyr4zwcsu8u3nmp85hcqv0r36syk",
         "provider":"akash1lwzjtsqkuytusa98py77cflhqxl3z7v7ur5632",
         "dseq":"10038327",
         "gseq":1,
         "oseq":1,
         "state":"active",
         "created_at":"9985874",
         "escrow_account":{
            "balance":{
               "denom":"uakt",
               "amount":"0.920000000000000000"
            },
            "transferred":{
               "denom":"uakt",
               "amount":"1.900000000000000000"
            },
            "settled_at":"9986019"
         },
         "lease_count":1,
         "leases":[
            {
               "state":"closed",
               "price":{
                  "denom":"uakt",
                  "amount":"27.510400000000000000"
               },
               "escrow_payment":{
                  "rate":{
                     "denom":"uakt",
                     "amount":"44.864000000000000000"
                  },
                  "balance":{
                     "denom":"uakt",
                     "amount":"0.920000000000000000"
                  },
                  "withdrawn":{
                     "denom":"uakt",
                     "amount":"1330441"
                  }
               },
               "created_at":"9985874",
               "closed_on":"9986019"
            }
         ]
      }
   ]
}```

from cloudmos.

Redm4x avatar Redm4x commented on September 26, 2024

Just deployed the api v2.11.1 with the new endpoints:

/providers/<provider>/deployments/<offset>/<limit>
/providers/<provider>/deployments/<offset>/<limit>/active
/providers/<provider>/deployments/<offset>/<limit>/closed

ex: https://api.cloudmos.io/providers/akash18ga02jzaq8cw52anyhzkwta5wygufgu6zsz6xc/deployments/0/10

@jigar-arc10 Please let us know if it is working as expected

from cloudmos.

jigar-arc10 avatar jigar-arc10 commented on September 26, 2024

Awesome! The API looks very good, and we are working to incorporate it into the list shown in the dashboard.

@Redm4x I have a request - Can you add the total number of leases in all three APIs so we can do better at pagination and show how many pages there are?

from cloudmos.

Redm4x avatar Redm4x commented on September 26, 2024

@jigar-arc10 Good idea, will add that to the endpoint and tag you once it's deployed 👍

from cloudmos.

Related Issues (20)

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.