File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change
1
+ import { sepolia } from "viem/chains"
2
+ import { createConfig , http } from "@wagmi/core"
3
+
4
+ export const config = createConfig ( {
5
+ chains : [ sepolia ] ,
6
+ transports : {
7
+ [ sepolia . id ] : http (
8
+ `https://eth-sepolia.g.alchemy.com/v2/${ process . env . ALCHEMY_API_KEY } `
9
+ ) ,
10
+ // [hardhat.id]: http("http://127.0.0.1:8545"),
11
+ } ,
12
+ } )
Original file line number Diff line number Diff line change 1
1
import blockies from "ethereum-blockies-base64"
2
2
import type { Address } from "viem"
3
- import { sepolia } from "viem/chains"
4
- import { createConfig , getPublicClient , http } from "@wagmi/core"
3
+ import { getPublicClient } from "@wagmi/core"
5
4
6
5
import Torch from "@/data/Torch.json"
7
6
7
+ import { config } from "./config"
8
+
8
9
const TORCH_CONTRACT_ADDRESS = Torch . address as Address
9
10
const TORCH_ABI = Torch . abi
10
11
const TORCH_BLOCK_NUMBER = Torch . blockNumber
@@ -21,16 +22,6 @@ export const isAddressFiltered = (address: string): boolean => {
21
22
return FILTERED_ADDRESSES . includes ( address . toLowerCase ( ) )
22
23
}
23
24
24
- export const config = createConfig ( {
25
- chains : [ sepolia ] ,
26
- transports : {
27
- [ sepolia . id ] : http (
28
- `https://eth-sepolia.g.alchemy.com/v2/${ process . env . ALCHEMY_API_KEY } `
29
- ) ,
30
- // [hardhat.id]: http("http://127.0.0.1:8545"),
31
- } ,
32
- } )
33
-
34
25
type TransferEvent = {
35
26
from : Address
36
27
to : Address
You can’t perform that action at this time.
0 commit comments