Skip to content

Commit

Permalink
feat: Add contracts-periphery to contracts-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Cory authored and Will Cory committed Jul 19, 2023
1 parent 5f03cdf commit 79159d5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/contracts-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@eth-optimism/contracts-bedrock": "workspace:0.15.0",
"@eth-optimism/contracts-bedrock": "workspace:*",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react-hooks": "^8.0.1",
"@types/glob": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-ts/src/actions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by @wagmi/[email protected] on 7/17/2023 at 7:40:03 PM
// Generated by @wagmi/[email protected] on 7/17/2023 at 7:42:03 PM
import {
getContract,
GetContractArgs,
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-ts/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by @wagmi/[email protected] on 7/17/2023 at 7:40:02 PM
// Generated by @wagmi/[email protected] on 7/17/2023 at 7:42:02 PM

/* eslint-disable */

Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-ts/src/react.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by @wagmi/[email protected] on 7/17/2023 at 7:40:03 PM
// Generated by @wagmi/[email protected] on 7/17/2023 at 7:42:04 PM
import {
useNetwork,
useContractRead,
Expand Down
3 changes: 1 addition & 2 deletions packages/contracts-ts/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,9 @@ const deployments = {
`node_modules/@eth-optimism/contracts-bedrock/deployments/${chains[420]}/*.json`
),
}

Object.entries(deployments).forEach(([chain, deploymentFiles]) => {
if (deploymentFiles.length === 0) {
throw new Error(`No deployments found for ${chains[chain]}`)
throw new Error(`No bedrock deployments found for ${chains[chain]}`)
}
})

Expand Down
5 changes: 4 additions & 1 deletion pnpm-lock.yaml

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

0 comments on commit 79159d5

Please sign in to comment.