Skip to content

Commit

Permalink
Seperate TP vs IC on dashboard (#3458)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiao-cll authored Oct 8, 2024
1 parent 62ba1ac commit 583b182
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-cups-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/tp-adapter': minor
---

Seperate TP vs IC on dashboard
21 changes: 20 additions & 1 deletion .pnp.cjs

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

Binary file not shown.
2 changes: 1 addition & 1 deletion packages/sources/tp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"start": "yarn server:dist"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.3.2",
"@chainlink/external-adapter-framework": "1.4.0",
"decimal.js": "^10.3.1",
"tslib": "^2.3.1"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/sources/tp/src/endpoint/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export const priceEndpoint = new PriceEndpoint({
if (rq.streamName) {
req.requestContext.data.streamName = rq.streamName.toUpperCase()
}

req.requestContext.data.adapterNameOverride = req.requestContext.data.streamName
},
],
})
2 changes: 2 additions & 0 deletions packages/sources/tp/src/transport/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export const generateTransport = () => {
quote: ticker.quote,
streamName: ticker.stream,
sourceName: ticker.source,
adapterNameOverride: ticker.stream,
},
response,
},
Expand All @@ -145,6 +146,7 @@ export const generateTransport = () => {
quote: ticker.quote,
streamName: ticker.stream,
sourceName: ticker.source,
adapterNameOverride: ticker.stream,
},
response,
},
Expand Down
24 changes: 23 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4453,6 +4453,28 @@ __metadata:
languageName: node
linkType: hard

"@chainlink/external-adapter-framework@npm:1.4.0":
version: 1.4.0
resolution: "@chainlink/external-adapter-framework@npm:1.4.0"
dependencies:
ajv: "npm:8.11.0"
axios: "npm:1.6.8"
eventsource: "npm:2.0.2"
fastify: "npm:4.13.0"
ioredis: "npm:5.2.3"
mock-socket: "npm:9.1.5"
pino: "npm:8.6.1"
pino-pretty: "npm:9.1.0"
prom-client: "npm:13.2.0"
redlock: "npm:5.0.0-beta.2"
ws: "npm:8.9.0"
yeoman-generator: "npm:3.1.1"
bin:
create-external-adapter: adapter-generator.js
checksum: 10/4ceb12124cf85f403f1bc59e16c99d7b1fe3abdc9e387cc10c7a6939f9a24c249f9c8e15885967daa529b0e4fa60d1bbba47103a678350ae9607716f75a3486c
languageName: node
linkType: hard

"@chainlink/external-adapters-js@workspace:.":
version: 0.0.0-use.local
resolution: "@chainlink/external-adapters-js@workspace:."
Expand Down Expand Up @@ -6182,7 +6204,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@chainlink/tp-adapter@workspace:packages/sources/tp"
dependencies:
"@chainlink/external-adapter-framework": "npm:1.3.2"
"@chainlink/external-adapter-framework": "npm:1.4.0"
"@sinonjs/fake-timers": "npm:9.1.2"
"@types/jest": "npm:27.5.2"
"@types/node": "npm:16.18.96"
Expand Down

0 comments on commit 583b182

Please sign in to comment.