Skip to content

Commit

Permalink
Instruxi-SxT minor change. Update endpoint url reference (#3691)
Browse files Browse the repository at this point in the history
* test signing

* Instruxi-sxt adapter, update url endpoint reference

* Update transport request

* Fixed changes

---------

Co-authored-by: Patricio Macedo <[email protected]>
  • Loading branch information
mxiao-cll and PatricioMacedo authored Feb 20, 2025
1 parent b87bad3 commit bd1b913
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
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

0 comments on commit bd1b913

Please sign in to comment.