Skip to content
Open
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@
</td>
</tr>
<tr>
<td style="width:100px; text-align:center;">
<div align="center">
<img alt="Tempo" src="https://tempo.xyz/favicon-dark.svg" width="24"/>
<br>Tempo
</div>
</td>
<td style="width:100px; text-align:center;">
<div align="center">
<img alt="coming soon" src="https://i.imgur.com/CexTjqF.png" width="22"/>
Expand Down
67 changes: 26 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"test": "vitest --coverage"
},
"peerDependencies": {
"viem": "^2.39.3"
"viem": "^2.45.3"
},
"devDependencies": {
"@types/node": "^24.5.2",
Expand Down
3 changes: 3 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
worldchain,
monad,
abstract,
tempo,
} from "viem/chains";
import type { SupportedChainId } from "./types";

Expand Down Expand Up @@ -134,6 +135,7 @@ export const SUPPORTED_CHAINS = [
worldchain,
monad,
abstract,
tempo,
];

export const NATIVE_SYMBOL_BY_CHAIN_ID: { [key in SupportedChainId]: string } =
Expand All @@ -156,6 +158,7 @@ export const NATIVE_SYMBOL_BY_CHAIN_ID: { [key in SupportedChainId]: string } =
[berachain.id]: berachain.nativeCurrency.symbol,
[worldchain.id]: worldchain.nativeCurrency.symbol,
[abstract.id]: abstract.nativeCurrency.symbol,
[tempo.id]: tempo.nativeCurrency.symbol,
};

export const NATIVE_TOKEN_ADDRESS = `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`;
Expand Down
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
unichain,
monad,
abstract,
tempo,
} from "viem/chains";

import type {
Expand Down Expand Up @@ -47,7 +48,8 @@ export type SupportedChainId =
| typeof avalanche.id
| typeof berachain.id
| typeof worldchain.id
| typeof abstract.id;
| typeof abstract.id
| typeof tempo.id;

export interface EnrichLogsArgs {
transactionReceipt: TransactionReceipt;
Expand Down
2 changes: 2 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
worldchain,
monad,
abstract,
tempo,
} from "viem/chains";
import { NATIVE_SYMBOL_BY_CHAIN_ID, NATIVE_TOKEN_ADDRESS } from "../constants";
import type { Address } from "viem";
Expand Down Expand Up @@ -50,6 +51,7 @@ export function isChainIdSupported(
berachain.id,
worldchain.id,
abstract.id,
tempo.id,
];
return supportedChainIds.includes(chainId);
}
Expand Down