-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: poll noves indexer data (#2868)
* feat: poll noves indexer data * feat: move network id to noves chain map to auxiliary and adds noves chain enum * fix: change promise all to promise all settled * fix: adds pagination to novesApi.getTransactionsFromAddress
- Loading branch information
1 parent
6a76e38
commit 8f2e3ed
Showing
9 changed files
with
81 additions
and
14 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './supported-network-id-to-noves-chain.constant' |
14 changes: 14 additions & 0 deletions
14
.../shared/src/lib/auxiliary/noves/constants/supported-network-id-to-noves-chain.constant.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { NetworkId } from '../../../core/network/types' | ||
import { SupportedNetworkId } from '../../../core/network/constants/supported-network-id.constant' | ||
import { SupportedNovesChain } from '../enums' | ||
|
||
export const SUPPORTED_NETWORK_ID_TO_NOVES_CHAIN: Readonly<{ [key in NetworkId]?: string }> = { | ||
[SupportedNetworkId.ShimmerEvm]: SupportedNovesChain.ShimmerEvm, | ||
[SupportedNetworkId.Ethereum]: SupportedNovesChain.Ethereum, | ||
[SupportedNetworkId.Sepolia]: SupportedNovesChain.Sepolia, | ||
[SupportedNetworkId.Arbitrum]: SupportedNovesChain.Arbitrum, | ||
[SupportedNetworkId.Base]: SupportedNovesChain.Base, | ||
[SupportedNetworkId.Blast]: SupportedNovesChain.Blast, | ||
[SupportedNetworkId.Optimism]: SupportedNovesChain.Optimism, | ||
[SupportedNetworkId.Bnb]: SupportedNovesChain.Bnb, | ||
} |
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 +1,2 @@ | ||
export * from './eth-rpc-method.enum' | ||
export * from './supported-noves-chain.enum' |
10 changes: 10 additions & 0 deletions
10
packages/shared/src/lib/auxiliary/noves/enums/supported-noves-chain.enum.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export enum SupportedNovesChain { | ||
ShimmerEvm = 'shimmer-evm', | ||
Ethereum = 'eth', | ||
Sepolia = 'eth-sepolia', | ||
Arbitrum = 'arbitrum', | ||
Base = 'base', | ||
Blast = 'blast', | ||
Optimism = 'optimism', | ||
Bnb = 'bsc', | ||
} |
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
17 changes: 9 additions & 8 deletions
17
packages/shared/src/lib/core/network/constants/default-noves-indexer-urls.constant.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
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
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