Skip to content
Merged
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
1 change: 1 addition & 0 deletions src/features/data/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
return fetch(url).then((res) => res.json())
}

export const getChainMetadata = async (chain: Chain): Promise<ChainMetadata | any> => {

Check warning on line 60 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 60 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
const requests = chain.networks.map((network) =>
network?.rddUrl
? getFeedsMetadata(network?.rddUrl).then((metadata) => ({
Expand Down Expand Up @@ -95,7 +95,7 @@
productType?: string
productTypeCode?: string
reserveAsset?: string
[key: string]: any

Check warning on line 98 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 98 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
}
threshold: number
heartbeat: number
Expand All @@ -104,7 +104,7 @@
supportedChains: string[]
valuePrefix?: string
valueSuffix?: string
[key: string]: any

Check warning on line 107 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 107 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
}

export interface BundleProxyData {
Expand Down Expand Up @@ -184,12 +184,12 @@

// Function to merge MVR feeds with regular feeds
export const mergeWithMVRFeeds = async (
chainMetadata: { [key: string]: any },

Check warning on line 187 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 187 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
mvrFeedsUrl: string | null
): Promise<{ [key: string]: any }> => {

Check warning on line 189 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 189 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
try {
// Debug function to check if MVR feeds are in the metadata
const checkForMVRFeeds = (metadata: any) => {

Check warning on line 192 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 192 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
let totalMVRFeeds = 0

Object.keys(metadata).forEach((chainKey) => {
Expand Down Expand Up @@ -233,12 +233,13 @@
"ethereum-testnet-sepolia-arbitrum-1": ["arbitrum-sepolia"],
"ethereum-testnet-sepolia": ["ethereum-sepolia"],
"avalanche-mainnet": ["avalanche-mainnet"],
"ethereum-testnet-sepolia-base-1": ["base-sepolia"],
}

// Process each chain in the metadata
for (const chain of Object.values(mergedMetadata)) {
if ((chain as any)?.networks) {

Check warning on line 241 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 241 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
for (const network of (chain as any).networks) {

Check warning on line 242 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 242 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
if (!network.metadata) {
network.metadata = []
}
Expand Down
Loading