Skip to content

Commit

Permalink
Update some EA config (#3620)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiao-cll authored Dec 17, 2024
1 parent 38b546f commit 4bc9c06
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 15 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
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 4bc9c06

Please sign in to comment.