Commit 86df9648 authored by Will Cory's avatar Will Cory

add react hooks

parent c8bf1638
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"dev": "tsx src/cli.ts", "dev": "tsx src/cli.ts",
"clean": "rm -rf ./node_modules && rm -rf ./dist && rm -rf ./coverage", "clean": "rm -rf ./node_modules && rm -rf ./dist && rm -rf ./coverage",
"build": "yarn tsup", "build": "yarn tsup",
"generate": "wagmi generate",
"lint": "yarn lint:fix && yarn lint:check", "lint": "yarn lint:fix && yarn lint:check",
"lint:check": "eslint . --max-warnings=0", "lint:check": "eslint . --max-warnings=0",
"lint:fix": "yarn lint:check --fix", "lint:fix": "yarn lint:check --fix",
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
}, },
"peerDependencies": { "peerDependencies": {
"@wagmi/core": ">0.9.0", "@wagmi/core": ">0.9.0",
"wagmi": ">0.11.0",
"ethers": "^5.0.0" "ethers": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
...@@ -40,6 +42,8 @@ ...@@ -40,6 +42,8 @@
"tsup": "^6.5.0", "tsup": "^6.5.0",
"tsx": "^3.12.2", "tsx": "^3.12.2",
"typescript": "^4.9.3", "typescript": "^4.9.3",
"@wagmi/core": "^0.9.2" "@wagmi/core": "^0.9.2",
"@wagmi/cli": "~0.1.5",
"wagmi": "~0.11.0"
} }
} }
This diff is collapsed.
import { defineConfig } from '@wagmi/cli'
import { hardhat, react } from '@wagmi/cli/plugins'
import * as chains from 'wagmi/chains'
import {ATTESTATION_STATION_ADDRESS} from '@eth-optimism/atst'
export default defineConfig({
out: 'src/react.ts',
plugins: [
hardhat({
project: '../contracts-periphery',
include: ['AttestationStation.json'],
deployments: {
AttestationStation: {
[chains.optimism.id]: ATTESTATION_STATION_ADDRESS,
[chains.optimismGoerli.id]: ATTESTATION_STATION_ADDRESS,
[chains.foundry.id]: ATTESTATION_STATION_ADDRESS,
}
},
}),
react(),
],
})
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment