Skip to content

Commit

Permalink
Chore/DF-20691 update endpoint (#3500)
Browse files Browse the repository at this point in the history
* DF-20691 update endpoint for bitgo-reserves

* add changeset
  • Loading branch information
mmcallister-cll authored Oct 23, 2024
1 parent fa34fe9 commit 4c9dfbd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-avocados-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/bitgo-reserves-adapter': minor
---

Update default endpoint
2 changes: 1 addition & 1 deletion packages/sources/bitgo-reserves/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export const config = new AdapterConfig({
API_ENDPOINT: {
description: 'An API endpoint for Data Provider',
type: 'string',
default: 'http://por.usdstandard-test.com',
default: 'https://reserves.usdstandard-test.com/por.json',
},
})
1 change: 0 additions & 1 deletion packages/sources/bitgo-reserves/src/transport/reserves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const httpTransport = new HttpTransport<HttpTransportTypes>({
params: [param],
request: {
baseURL: config.API_ENDPOINT,
url: '/reserves.json',
},
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const mockResponseSuccess = (): nock.Scope =>
nock('http://test-endpoint.com', {
encodedQueryParams: true,
})
.get('/reserves.json')
.get('/')
.reply(
200,
() => ({
Expand Down

0 comments on commit 4c9dfbd

Please sign in to comment.