
diff --git a/package-lock.json b/package-lock.json
index 99e7f47..002902c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22,14 +22,15 @@
"node": ">=20"
},
"peerDependencies": {
- "viem": "^2.39.3"
+ "viem": "^2.45.3"
}
},
"node_modules/@adraffy/ens-normalize": {
"version": "1.11.1",
"resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz",
"integrity": "sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==",
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/@ampproject/remapping": {
"version": "2.3.0",
@@ -622,6 +623,7 @@
"resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz",
"integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==",
"license": "MIT",
+ "peer": true,
"engines": {
"node": "^14.21.3 || >=16"
},
@@ -634,6 +636,7 @@
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz",
"integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@noble/hashes": "1.8.0"
},
@@ -649,6 +652,7 @@
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
"integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
"license": "MIT",
+ "peer": true,
"engines": {
"node": "^14.21.3 || >=16"
},
@@ -979,6 +983,7 @@
"resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz",
"integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==",
"license": "MIT",
+ "peer": true,
"funding": {
"url": "https://paulmillr.com/funding/"
}
@@ -988,6 +993,7 @@
"resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz",
"integrity": "sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@noble/curves": "~1.9.0",
"@noble/hashes": "~1.8.0",
@@ -1002,6 +1008,7 @@
"resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz",
"integrity": "sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@noble/hashes": "~1.8.0",
"@scure/base": "~1.2.5"
@@ -1040,7 +1047,6 @@
"integrity": "sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"undici-types": "~7.12.0"
}
@@ -1195,9 +1201,9 @@
}
},
"node_modules/abitype": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.1.1.tgz",
- "integrity": "sha512-Loe5/6tAgsBukY95eGaPSDmQHIjRZYQq8PB1MpsNccDIK8WiV+Uw6WzaIXipvaxTEL2yEB0OpEaQv3gs8pkS9Q==",
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.2.3.tgz",
+ "integrity": "sha512-Ofer5QUnuUdTFsBRwARMoWKOH1ND5ehwYhJ3OJ/BQO+StkwQjHw0XyVh4vDttzHB7QOFhPHa/o413PJ82gU/Tg==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/wevm"
@@ -1878,6 +1884,7 @@
}
],
"license": "MIT",
+ "peer": true,
"peerDependencies": {
"ws": "*"
}
@@ -2104,9 +2111,9 @@
}
},
"node_modules/ox": {
- "version": "0.9.6",
- "resolved": "https://registry.npmjs.org/ox/-/ox-0.9.6.tgz",
- "integrity": "sha512-8SuCbHPvv2eZLYXrNmC0EC12rdzXQLdhnOMlHDW2wiCPLxBrOOJwX5L5E61by+UjTPOryqQiRSnjIKCI+GykKg==",
+ "version": "0.12.1",
+ "resolved": "https://registry.npmjs.org/ox/-/ox-0.12.1.tgz",
+ "integrity": "sha512-uU0llpthaaw4UJoXlseCyBHmQ3bLrQmz9rRLIAUHqv46uHuae9SE+ukYBRIPVCnlEnHKuWjDUcDFHWx9gbGNoA==",
"funding": [
{
"type": "github",
@@ -2114,6 +2121,7 @@
}
],
"license": "MIT",
+ "peer": true,
"dependencies": {
"@adraffy/ens-normalize": "^1.11.0",
"@noble/ciphers": "^1.3.0",
@@ -2121,7 +2129,7 @@
"@noble/hashes": "^1.8.0",
"@scure/bip32": "^1.7.0",
"@scure/bip39": "^1.6.0",
- "abitype": "^1.0.9",
+ "abitype": "^1.2.3",
"eventemitter3": "5.0.1"
},
"peerDependencies": {
@@ -2137,7 +2145,8 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
"integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/package-json-from-dist": {
"version": "1.0.1",
@@ -2200,7 +2209,6 @@
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"dev": true,
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=12"
},
@@ -2680,7 +2688,6 @@
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
"devOptional": true,
"license": "Apache-2.0",
- "peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -2715,9 +2722,9 @@
"dev": true
},
"node_modules/viem": {
- "version": "2.39.3",
- "resolved": "https://registry.npmjs.org/viem/-/viem-2.39.3.tgz",
- "integrity": "sha512-s11rPQRvUEdc5qHK3xT4fIk4qvgPAaLwaTFq+EbFlcJJD+Xn3R4mc9H6B6fquEiHl/mdsdbG/uKCnYpoNtHNHw==",
+ "version": "2.45.3",
+ "resolved": "https://registry.npmjs.org/viem/-/viem-2.45.3.tgz",
+ "integrity": "sha512-axOD7rIbGiDHHA1MHKmpqqTz3CMCw7YpE/FVypddQMXL5i364VkNZh9JeEJH17NO484LaZUOMueo35IXyL76Mw==",
"funding": [
{
"type": "github",
@@ -2725,14 +2732,15 @@
}
],
"license": "MIT",
+ "peer": true,
"dependencies": {
"@noble/curves": "1.9.1",
"@noble/hashes": "1.8.0",
"@scure/bip32": "1.7.0",
"@scure/bip39": "1.6.0",
- "abitype": "1.1.0",
+ "abitype": "1.2.3",
"isows": "1.0.7",
- "ox": "0.9.6",
+ "ox": "0.12.1",
"ws": "8.18.3"
},
"peerDependencies": {
@@ -2744,34 +2752,12 @@
}
}
},
- "node_modules/viem/node_modules/abitype": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.1.0.tgz",
- "integrity": "sha512-6Vh4HcRxNMLA0puzPjM5GBgT4aAcFGKZzSgAXvuZ27shJP6NEpielTuqbBmZILR5/xd0PizkBGy5hReKz9jl5A==",
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/wevm"
- },
- "peerDependencies": {
- "typescript": ">=5.0.4",
- "zod": "^3.22.0 || ^4.0.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- },
- "zod": {
- "optional": true
- }
- }
- },
"node_modules/vite": {
"version": "7.1.6",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.6.tgz",
"integrity": "sha512-SRYIB8t/isTwNn8vMB3MR6E+EQZM/WG1aKmmIUCfDXfVvKfc20ZpamngWHKzAmmu9ppsgxsg4b2I7c90JZudIQ==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"esbuild": "^0.25.0",
"fdir": "^6.5.0",
@@ -2870,7 +2856,6 @@
"integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@types/chai": "^5.2.2",
"@vitest/expect": "3.2.4",
diff --git a/package.json b/package.json
index 4355111..efbecc2 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,7 @@
"test": "vitest --coverage"
},
"peerDependencies": {
- "viem": "^2.39.3"
+ "viem": "^2.45.3"
},
"devDependencies": {
"@types/node": "^24.5.2",
diff --git a/src/constants.ts b/src/constants.ts
index ca4bd6d..162f97f 100644
--- a/src/constants.ts
+++ b/src/constants.ts
@@ -17,6 +17,7 @@ import {
worldchain,
monad,
abstract,
+ tempo,
} from "viem/chains";
import type { SupportedChainId } from "./types";
@@ -134,6 +135,7 @@ export const SUPPORTED_CHAINS = [
worldchain,
monad,
abstract,
+ tempo,
];
export const NATIVE_SYMBOL_BY_CHAIN_ID: { [key in SupportedChainId]: string } =
@@ -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`;
diff --git a/src/types.ts b/src/types.ts
index b17a26d..ed6de16 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -17,6 +17,7 @@ import {
unichain,
monad,
abstract,
+ tempo,
} from "viem/chains";
import type {
@@ -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;
diff --git a/src/utils/index.ts b/src/utils/index.ts
index a058fcd..2811ef3 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -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";
@@ -50,6 +51,7 @@ export function isChainIdSupported(
berachain.id,
worldchain.id,
abstract.id,
+ tempo.id,
];
return supportedChainIds.includes(chainId);
}