-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwagmi.config.ts
53 lines (50 loc) · 1.55 KB
/
wagmi.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { defineConfig } from '@wagmi/cli';
import { actions, foundry, react } from '@wagmi/cli/plugins';
import { RMRKCatalogFactoryContractAddress } from 'lib/consts/contract-addresses';
import {
astar,
astarZkEVM,
base,
baseSepolia,
bob,
moonbeam,
polygon,
sepolia,
} from 'wagmi/chains';
type FoundryConfigDeployments = {
[p: string]: `0x${string}` | Record<number, `0x${string}`> | undefined;
};
const rmrkConfigDeployments: FoundryConfigDeployments = {
RMRKCatalogFactory: {
[baseSepolia.id]: RMRKCatalogFactoryContractAddress[baseSepolia.id],
[sepolia.id]: RMRKCatalogFactoryContractAddress[sepolia.id],
[base.id]: RMRKCatalogFactoryContractAddress[base.id],
[moonbeam.id]: RMRKCatalogFactoryContractAddress[moonbeam.id],
[polygon.id]: RMRKCatalogFactoryContractAddress[polygon.id],
[astarZkEVM.id]: RMRKCatalogFactoryContractAddress[astarZkEVM.id],
[bob.id]: RMRKCatalogFactoryContractAddress[bob.id],
[astar.id]: RMRKCatalogFactoryContractAddress[astar.id],
},
// RMRKEquipRenderUtils: {
// [baseSepolia.id]: RMRKCatalogFactoryContractAddress[baseSepolia.id],
// },
};
export default defineConfig({
out: 'lib/wagmi/generated.ts',
contracts: [],
plugins: [
actions(),
react(),
foundry({
project: 'contracts',
deployments: rmrkConfigDeployments,
include: [
// the following patterns are included by default
'RMRKCatalogImpl.json',
'RMRKCatalogFactory.json',
'RMRKEquipRenderUtils.json',
'RMRKCatalogUtils.json',
],
}),
],
});