Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instruxi-SxT minor change. Update endpoint url reference (#3691) #4

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/empty-bikes-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/instruxi-sxt-adapter': major
---

Instruxi-sxt adapter. Update endpoint url reference to config
2 changes: 1 addition & 1 deletion .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed .yarn/cache/fsevents-patch-6b67494872-10.zip
Binary file not shown.
Binary file removed .yarn/cache/fsevents-patch-afc6995412-10.zip
Binary file not shown.
3 changes: 1 addition & 2 deletions packages/sources/instruxi-sxt/src/transport/total_reserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ export const totalReserveTransport = new HttpTransport<TotalReserveTransportType
return {
params: [param],
request: {
baseURL: config.API_ENDPOINT,
url: '/v1/sql',
url: config.API_ENDPOINT,
method: 'POST',
headers: {
Accept: 'application/json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
setEnvVariables,
} from '@chainlink/external-adapter-framework/util/testing-utils'
import * as nock from 'nock'
import { mockResponseSuccess, mockResponseError } from './fixtures'
import { mockResponseSuccess } from './fixtures'

describe('execute', () => {
let spy: jest.SpyInstance
Expand Down
4 changes: 2 additions & 2 deletions packages/sources/instruxi-sxt/test/integration/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const mockResponseSuccess = (): nock.Scope =>
nock('https://api-endpoint-placeholder.com', {
encodedQueryParams: true,
})
.post('/v1/sql')
.post('/')
.reply(
200,
[{ TOTAL_RESERVE: 300000000 }],
Expand All @@ -25,7 +25,7 @@ export const mockResponseError = (): nock.Scope =>
nock('https://api-endpoint-placeholder.com', {
encodedQueryParams: true,
})
.post('/v1/sql')
.post('/')
.reply(
400,
{
Expand Down