-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
2,812 additions
and
1,159 deletions.
There are no files selected for viewing
250 changes: 125 additions & 125 deletions
250
packages/rfq-indexer/api/src/constants/networkConfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,129 +1,129 @@ | ||
import { createPublicClient, http } from 'viem' | ||
import { | ||
mainnet, | ||
arbitrum, | ||
optimism, | ||
base, | ||
scroll, | ||
linea, | ||
bsc, | ||
blast, | ||
worldchain, | ||
} from 'viem/chains' | ||
// import { createPublicClient, http } from 'viem' | ||
// import { | ||
// mainnet, | ||
// arbitrum, | ||
// optimism, | ||
// base, | ||
// scroll, | ||
// linea, | ||
// bsc, | ||
// blast, | ||
// worldchain, | ||
// } from 'viem/chains' | ||
|
||
import { FastBridgeV2Abi } from './abis/FastBridgeV2' | ||
// import { FastBridgeV2Abi } from './abis/FastBridgeV2' | ||
|
||
interface NetworkEntry { | ||
name: string | ||
FastBridgeV2: { | ||
address: string | ||
abi: any | ||
} | ||
client: any | ||
} | ||
// interface NetworkEntry { | ||
// name: string | ||
// FastBridgeV2: { | ||
// address: string | ||
// abi: any | ||
// } | ||
// client: any | ||
// } | ||
|
||
type NetworkConfig = { | ||
[chainId: number]: NetworkEntry | ||
} | ||
// type NetworkConfig = { | ||
// [chainId: number]: NetworkEntry | ||
// } | ||
|
||
export const networkConfig: NetworkConfig = { | ||
1: { | ||
name: 'Ethereum', | ||
FastBridgeV2: { | ||
address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: mainnet, | ||
transport: http(), | ||
}), | ||
}, | ||
42161: { | ||
name: 'Arbitrum', | ||
FastBridgeV2: { | ||
address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: arbitrum, | ||
transport: http(), | ||
}), | ||
}, | ||
10: { | ||
name: 'Optimism', | ||
FastBridgeV2: { | ||
address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: optimism, | ||
transport: http(), | ||
}), | ||
}, | ||
8453: { | ||
name: 'Base', | ||
FastBridgeV2: { | ||
address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: base, | ||
transport: http(), | ||
}), | ||
}, | ||
534352: { | ||
name: 'Scroll', | ||
FastBridgeV2: { | ||
address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: scroll, | ||
transport: http(), | ||
}), | ||
}, | ||
59144: { | ||
name: 'Linea', | ||
FastBridgeV2: { | ||
address: '0x34F52752975222d5994C206cE08C1d5B329f24dD', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: linea, | ||
transport: http(), | ||
}), | ||
}, | ||
56: { | ||
name: 'BNB Chain', | ||
FastBridgeV2: { | ||
address: '0x34F52752975222d5994C206cE08C1d5B329f24dD', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: bsc, | ||
transport: http(), | ||
}), | ||
}, | ||
81457: { | ||
name: 'Blast', | ||
FastBridgeV2: { | ||
address: '0x34F52752975222d5994C206cE08C1d5B329f24dD', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: blast, | ||
transport: http(), | ||
}), | ||
}, | ||
480: { | ||
name: 'Worldchain', | ||
FastBridgeV2: { | ||
address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
abi: FastBridgeV2Abi, | ||
}, | ||
client: createPublicClient({ | ||
chain: worldchain, | ||
transport: http(), | ||
}), | ||
}, | ||
} as const | ||
// export const networkConfig: NetworkConfig = { | ||
// 1: { | ||
// name: 'Ethereum', | ||
// FastBridgeV2: { | ||
// address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: mainnet, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// 42161: { | ||
// name: 'Arbitrum', | ||
// FastBridgeV2: { | ||
// address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: arbitrum, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// 10: { | ||
// name: 'Optimism', | ||
// FastBridgeV2: { | ||
// address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: optimism, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// 8453: { | ||
// name: 'Base', | ||
// FastBridgeV2: { | ||
// address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: base, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// 534352: { | ||
// name: 'Scroll', | ||
// FastBridgeV2: { | ||
// address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: scroll, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// 59144: { | ||
// name: 'Linea', | ||
// FastBridgeV2: { | ||
// address: '0x34F52752975222d5994C206cE08C1d5B329f24dD', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: linea, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// 56: { | ||
// name: 'BNB Chain', | ||
// FastBridgeV2: { | ||
// address: '0x34F52752975222d5994C206cE08C1d5B329f24dD', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: bsc, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// 81457: { | ||
// name: 'Blast', | ||
// FastBridgeV2: { | ||
// address: '0x34F52752975222d5994C206cE08C1d5B329f24dD', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: blast, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// 480: { | ||
// name: 'Worldchain', | ||
// FastBridgeV2: { | ||
// address: '0x5523D3c98809DdDB82C686E152F5C58B1B0fB59E', | ||
// abi: FastBridgeV2Abi, | ||
// }, | ||
// client: createPublicClient({ | ||
// chain: worldchain, | ||
// transport: http(), | ||
// }), | ||
// }, | ||
// } as const |
Oops, something went wrong.