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

Update some EA config #3620

Merged
merged 1 commit into from
Dec 17, 2024
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/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
Loading