Skip to content

Commit

Permalink
Merge pull request #170 from Holo-Host/fix/updated-endpoints
Browse files Browse the repository at this point in the history
fix: updated endpoints for hpos-api-rust
  • Loading branch information
zeeshan595 authored Aug 6, 2024
2 parents b89d959 + 9b0d855 commit 16417e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/interfaces/HposInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ export function useHposInterface(): HposInterface {
try {
return await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/host/invoices',
params: { invoice_set: 'paid' }
})
Expand All @@ -837,6 +838,7 @@ export function useHposInterface(): HposInterface {
try {
return await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/host/invoices',
params: { invoice_set: 'unpaid' }
})
Expand All @@ -849,6 +851,7 @@ export function useHposInterface(): HposInterface {
try {
return await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/host/redemptions'
})
} catch (error) {
Expand All @@ -862,6 +865,7 @@ export function useHposInterface(): HposInterface {
// @ts-ignore
const { version: coreAppVersion } = await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/apps/core/version'
})

Expand All @@ -884,6 +888,7 @@ export function useHposInterface(): HposInterface {
// @ts-ignore
const data = await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/host/kyc_level'
})

Expand Down Expand Up @@ -959,7 +964,7 @@ export function useHposInterface(): HposInterface {
const result = await hposHolochainCall({
method: 'get',
pathPrefix: '/api/v2',
path: '/holofuel_redeemable_for_last_week'
path: '/host/redeemable_histogram'
})

return result
Expand Down

0 comments on commit 16417e6

Please sign in to comment.