Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-issuer-data-feeds[bot] authored Dec 17, 2024
2 parents 0bb8c42 + 6bdc476 commit 85f5709
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-starfishes-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/mobula-state-adapter': patch
---

Update endpoint
5 changes: 5 additions & 0 deletions .changeset/sixty-pans-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/nav-consulting-adapter': patch
---

Update rate limiter
5 changes: 5 additions & 0 deletions .changeset/tidy-apples-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/kaiko-state-adapter': patch
---

Add crypto alias to state endpoint
2 changes: 1 addition & 1 deletion packages/sources/kaiko-state/src/endpoint/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type BaseEndpointTypes = {

export const endpoint = new AdapterEndpoint({
name: 'state',
aliases: [],
aliases: ['crypto'],
transport: kaikoStateTransport,
inputParameters,
requestTransforms: [
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/mobula-state/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const config = new AdapterConfig({
WS_API_ENDPOINT: {
description: 'WS endpoint for Data Provider',
type: 'string',
default: 'wss://feed.zobula.xyz',
default: 'wss://production-feed.mobula.io',
},
API_KEY: {
description: 'An API key for Data Provider',
Expand Down
31 changes: 19 additions & 12 deletions packages/sources/nav-consulting/src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
import { AdapterConfig } from '@chainlink/external-adapter-framework/config'

export const config = new AdapterConfig({
API_ENDPOINT: {
description: 'An API endpoint for Data Provider',
type: 'string',
default: 'https://api.navconsulting.net',
},
export const config = new AdapterConfig(
{
API_ENDPOINT: {
description: 'An API endpoint for Data Provider',
type: 'string',
default: 'https://api.navconsulting.net',
},

BACKGROUND_EXECUTE_MS: {
description:
'The amount of time the background execute should sleep before performing the next request',
type: 'number',
default: 10_000,
BACKGROUND_EXECUTE_MS: {
description:
'The amount of time the background execute should sleep before performing the next request',
type: 'number',
default: 10_000,
},
},
{
envDefaultOverrides: {
CACHE_MAX_AGE: 300_000, // Due to API limit of 2 request per minute
},
},
})
)
4 changes: 2 additions & 2 deletions packages/sources/nav-consulting/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const adapter = new Adapter({
rateLimiting: {
tiers: {
default: {
rateLimit1m: 20,
note: 'Nothing in docs, setting reasonable rate limit based on 2req/bg execute',
rateLimit1m: 4,
note: '60/min in total shared by 30 EA instance, each EA can do 2 per min per API. Each call hits 2 API',
},
},
},
Expand Down

0 comments on commit 85f5709

Please sign in to comment.